package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 班级练习关联表
 * @TableName t_class_exercise
 */
@TableName(value ="t_class_exercise")
@Data
public class ClassExercise implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 班级ID
     */
    @TableField(value = "classId")
    private Long classId;

    /**
     * 练习(试卷)ID
     */
    @TableField(value = "exercisesSetsId")
    private Long exercisesSetsId;

    /**
     * 发布老师ID
     */
    @TableField(value = "publishTeacher")
    private Long publishTeacher;

    /**
     * 开始时间
     */
    @TableField(value = "startTime")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "endTime")
    private Date endTime;

    /**
     * 状态(1为已发布/2为已截止/3为已作废)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}